<?php
function format_date($date){
	if (isset($date)){
		list($day, $month, $year) = explode('/', $date);
		//echo "<br/>".$day."|".$month."|".$year."<br/>";
		return date("Y-m-d", mktime(0, 0, 0, $month, $day, $year));
	}else
		return NULL;
}
?>